﻿using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;

namespace DocProcessingWorkflow.Helpers
{
    public class HtmlExtensions
    {
        public static IEnumerable<SelectListItem> GetListItemsForFiles(IList<Entities.File.FileInfo> files)
        {
            return files.Select(f => new SelectListItem()
            {
                Text = f.Name +  "(Date : " + f.FileCreationDate+ ")",
                Value = f.Name
            });
        }
    }
}